package com.itcast.hateoas.demo.order.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 订单实体
 */
@Entity
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "T_ORDER")
@Builder
@Data
public class OrderEntity extends BaseEntity{
    private String user;
    private String stockName;

    //成交数量
    private Integer volume;

    //成交价格
    private Double price;
}
